package com.htcms.base;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;
import org.omg.CORBA.NO_PERMISSION;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
 
/**
 * DWR基类
 * @author 朱锋
 * 2007-10-26
 */
public class DWRBase {
 	
 
	
   protected WebContext getWebContext(){
	   return WebContextFactory.get();
   }
   protected HttpServletRequest getRequest(){
	  return getWebContext().getHttpServletRequest();
   }
   protected HttpServletResponse getResponse(){
		  return getWebContext().getHttpServletResponse();
	   }
   protected HttpSession getHttpSession(){
	   return getWebContext().getSession();
   }
        
  
}
